package ua.com.ulitko.server;

import com.google.gwt.user.server.rpc.RemoteServiceServlet;
import ua.com.ulitko.client.entity.Performer;
import ua.com.ulitko.client.service.PerformerService;
import ua.com.ulitko.server.dao.PerformerDao;

import java.util.ArrayList;

/**
 * @author suamo ( 24.03.12 23:55 )
 */
public class PerformerServiceImpl extends RemoteServiceServlet implements PerformerService {
    private PerformerDao performerDao = ContextLoader.getPerformerDao();

    public PerformerServiceImpl() {
    }

    @Override
    public ArrayList<Performer> getPerformerList() {
        return performerDao.getPerformerList();
    }

    @Override
    public void addPerformer(Performer performer) {
        performerDao.addPerformer(performer);
    }

}